package com.cskaoyan.catmall.dao;

import com.cskaoyan.catmall.model.pojo.MarketFootprint;
import com.cskaoyan.catmall.model.pojo.MarketFootprintExample;
import com.cskaoyan.catmall.model.vo.FootPrintListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketFootprintMapper {
    long countByExample(MarketFootprintExample example);

    int deleteByExample(MarketFootprintExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketFootprint record);

    int insertSelective(MarketFootprint record);

    List<MarketFootprint> selectByExample(MarketFootprintExample example);

    MarketFootprint selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketFootprint record, @Param("example") MarketFootprintExample example);

    int updateByExample(@Param("record") MarketFootprint record, @Param("example") MarketFootprintExample example);

    int updateByPrimaryKeySelective(MarketFootprint record);

    int updateByPrimaryKey(MarketFootprint record);

    List<FootPrintListVO> selectFootPrintSelective(@Param("userId") Integer userId, @Param("goodsId") Integer goodsId,
                                              @Param("order") String order, @Param("sort") String sort);
}